//package com.xiaochong.tir.api.scheduled;
//
//import com.alibaba.fastjson.JSON;
//import com.xc.logclient.utils.LogTrace;
//import com.xiaochong.service.common.config.redis.RedisServer;
//import com.xiaochong.tir.api.service.ExchangeInfoService;
//import com.xiaochong.tir.api.service.WebSocketService;
//import com.xiaochong.tir.api.util.ApiVersion;
//import com.xiaochong.tir.api.webws.WsSessionContainer;
//import com.xiaochong.tir.common.data.mapper.ExchangeTransactionpairMiddleMapper;
//import com.xiaochong.tir.common.data.mapper.TransactionPairMapper;
//import com.xiaochong.tir.common.data.po.ExchangeTransactionpairMiddle;
//import com.xiaochong.tir.common.data.po.TransactionPair;
//import com.xiaochong.tir.common.data.vo.ApiResultVo;
//import com.xiaochong.tir.common.data.vo.ApiWebSocketVo;
//import com.xiaochong.tir.common.data.vo.AvgChartVo;
//import com.xiaochong.tir.common.util.RedisKeysUtils;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//import jdk.nashorn.internal.ir.RuntimeNode;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.beans.factory.annotation.Value;
//import org.springframework.scheduling.annotation.Scheduled;
//import org.springframework.stereotype.Component;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//import java.util.List;
//
///**
// * 通证指数
// * @author MengXiangDong
// */
//@Component
//public class WebSocketScheduted {
//
//    @Autowired
//    private WebSocketService webSocketService;
//
//	@Autowired
//	private RedisServer redisServer;
//	//买卖单
//	@Scheduled(fixedRate = 4000)
//	public void orderBook() throws Exception {
//		LogTrace.beginTrace("定时任务买卖单");
//		LogTrace.info( "定时任务orderBook","time",System.currentTimeMillis()+"" );
//		webSocketService.orderBook( );
//		LogTrace.endTrace();
//	}
//
//	//k线数据-K线图
//	@Scheduled(fixedRate = 3000)
//	public void kAction() throws Exception {
//		LogTrace.beginTrace("定时任务k线数据-K线图");
//		LogTrace.info( "定时任务kAction","time",System.currentTimeMillis()+"" );
//		webSocketService.kAction( );
//		LogTrace.endTrace();
//	}
//
//	//k线数据-历史交易
//	@Scheduled(fixedRate = 5000)
//	public void tranes() throws Exception {
//		LogTrace.beginTrace("定时任务k线数据-历史交易");
//		LogTrace.info( "定时任务tranes","time",System.currentTimeMillis()+"" );
//		webSocketService.tranes( );
//		LogTrace.endTrace();
//	}
//
//	//深度
//	@Scheduled(fixedRate = 3000)
//	public void depth() throws Exception {
//		LogTrace.beginTrace("定时任务深度");
//		LogTrace.info( "定时任务depth","time",System.currentTimeMillis()+"" );
//		webSocketService.depth( );
//		LogTrace.endTrace();
//	}
//}
